Ultrasonographic measurement of diaphragm thickness